<?php


namespace Qwadmin\Controller;

class OtherController extends ComController
{

	public function zhou()
	{

		$yue = date('m');
		$zlist = M('type')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue,'type'=>'绩效周分享表'])->select();
		$off = $zlist[0]['off'];
        
        if ($off == '1') {
        	$list = M('zhou')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue])->order('id desc')->select();
        	$this->assign('list',$list);
        }
        $time = date('Y').'-'.$list[0]['yue'].'月份';
        $this->assign('zlist',$zlist);
        $this->assign('off',$off);
        $this->assign('time',$time);
        $this->display();
		// $this->display();
	}





	

}